package buisness_service;

import java.util.ArrayList;
import java.util.List;

public class Depense_jour {

	private List<Depense> depenses;
	private Finance_jour finance_jour;

	public Depense_jour(Finance_jour fin_jour, User user) {
		this.setFinance_jour(fin_jour);
		depenses = new ArrayList<Depense>();
		user.getRapport()
				.get(fin_jour.getFinance_mois().getIndexFinance_annee())
				.getDepense_annee().getDepenses_mois()
				.get(fin_jour.getFinance_mois().getIndex_finance_mois())
				.getDepenses_jour().add(this);
	}

	public List<Depense> getDepenses() {
		return depenses;
	}

	public void setDepenses(List<Depense> depenses) {
		this.depenses = depenses;
	}

	public Finance_jour getFinance_jour() {
		return finance_jour;
	}

	public void setFinance_jour(Finance_jour finance_jour) {
		this.finance_jour = finance_jour;
	}

}
